package com.cy.detectsys.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName detect_mission_target
 */
@TableName(value ="detect_mission_target")
@Data
public class DetectMissionTarget implements Serializable {
    /**
     * 
     */
    @TableId
    private String id;

    /**
     * 
     */
    private Long kyMissionTargetParentId;

    /**
     * 任务ID
     */
    private String kyMissionId;

    /**
     * 目标ID
     */
    private String kyNetTargetId;

    /**
     * 价值贡献
     */
    private String kyMissionTagetContributions;

    /**
     * 价值判断依据
     */
    private String kyMissionTargetValueAttachments;

    /**
     * 优先级
     */
    private Integer kyMissionTargetPriority;

    /**
     * 责任人
     */
    private String kyMissionTargetPerson;

    /**
     * 合同ID
     */
    private String kyMissionTargetContractId;

    /**
     * 
     */
    private Integer kyMissionTargetStatus;

    /**
     * 
     */
    private String kyMissionComment;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private String updateUser;

    /**
     * 
     */
    private String createUser;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    @TableLogic
    private Integer deleted;

    /**
     * 目标价值
     */
    private String kyMissionTargetValue;

    /**
     * 任务阶段
     */
    private Integer kyMissionTargetLevel;

    /**
     * 任务执行状态 
     */
    private String kyMissionTargetExecuteStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DetectMissionTarget other = (DetectMissionTarget) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getKyMissionTargetParentId() == null ? other.getKyMissionTargetParentId() == null : this.getKyMissionTargetParentId().equals(other.getKyMissionTargetParentId()))
            && (this.getKyMissionId() == null ? other.getKyMissionId() == null : this.getKyMissionId().equals(other.getKyMissionId()))
            && (this.getKyNetTargetId() == null ? other.getKyNetTargetId() == null : this.getKyNetTargetId().equals(other.getKyNetTargetId()))
            && (this.getKyMissionTagetContributions() == null ? other.getKyMissionTagetContributions() == null : this.getKyMissionTagetContributions().equals(other.getKyMissionTagetContributions()))
            && (this.getKyMissionTargetValueAttachments() == null ? other.getKyMissionTargetValueAttachments() == null : this.getKyMissionTargetValueAttachments().equals(other.getKyMissionTargetValueAttachments()))
            && (this.getKyMissionTargetPriority() == null ? other.getKyMissionTargetPriority() == null : this.getKyMissionTargetPriority().equals(other.getKyMissionTargetPriority()))
            && (this.getKyMissionTargetPerson() == null ? other.getKyMissionTargetPerson() == null : this.getKyMissionTargetPerson().equals(other.getKyMissionTargetPerson()))
            && (this.getKyMissionTargetContractId() == null ? other.getKyMissionTargetContractId() == null : this.getKyMissionTargetContractId().equals(other.getKyMissionTargetContractId()))
            && (this.getKyMissionTargetStatus() == null ? other.getKyMissionTargetStatus() == null : this.getKyMissionTargetStatus().equals(other.getKyMissionTargetStatus()))
            && (this.getKyMissionComment() == null ? other.getKyMissionComment() == null : this.getKyMissionComment().equals(other.getKyMissionComment()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
            && (this.getKyMissionTargetValue() == null ? other.getKyMissionTargetValue() == null : this.getKyMissionTargetValue().equals(other.getKyMissionTargetValue()))
            && (this.getKyMissionTargetLevel() == null ? other.getKyMissionTargetLevel() == null : this.getKyMissionTargetLevel().equals(other.getKyMissionTargetLevel()))
            && (this.getKyMissionTargetExecuteStatus() == null ? other.getKyMissionTargetExecuteStatus() == null : this.getKyMissionTargetExecuteStatus().equals(other.getKyMissionTargetExecuteStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getKyMissionTargetParentId() == null) ? 0 : getKyMissionTargetParentId().hashCode());
        result = prime * result + ((getKyMissionId() == null) ? 0 : getKyMissionId().hashCode());
        result = prime * result + ((getKyNetTargetId() == null) ? 0 : getKyNetTargetId().hashCode());
        result = prime * result + ((getKyMissionTagetContributions() == null) ? 0 : getKyMissionTagetContributions().hashCode());
        result = prime * result + ((getKyMissionTargetValueAttachments() == null) ? 0 : getKyMissionTargetValueAttachments().hashCode());
        result = prime * result + ((getKyMissionTargetPriority() == null) ? 0 : getKyMissionTargetPriority().hashCode());
        result = prime * result + ((getKyMissionTargetPerson() == null) ? 0 : getKyMissionTargetPerson().hashCode());
        result = prime * result + ((getKyMissionTargetContractId() == null) ? 0 : getKyMissionTargetContractId().hashCode());
        result = prime * result + ((getKyMissionTargetStatus() == null) ? 0 : getKyMissionTargetStatus().hashCode());
        result = prime * result + ((getKyMissionComment() == null) ? 0 : getKyMissionComment().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        result = prime * result + ((getKyMissionTargetValue() == null) ? 0 : getKyMissionTargetValue().hashCode());
        result = prime * result + ((getKyMissionTargetLevel() == null) ? 0 : getKyMissionTargetLevel().hashCode());
        result = prime * result + ((getKyMissionTargetExecuteStatus() == null) ? 0 : getKyMissionTargetExecuteStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", kyMissionTargetParentId=").append(kyMissionTargetParentId);
        sb.append(", kyMissionId=").append(kyMissionId);
        sb.append(", kyNetTargetId=").append(kyNetTargetId);
        sb.append(", kyMissionTagetContributions=").append(kyMissionTagetContributions);
        sb.append(", kyMissionTargetValueAttachments=").append(kyMissionTargetValueAttachments);
        sb.append(", kyMissionTargetPriority=").append(kyMissionTargetPriority);
        sb.append(", kyMissionTargetPerson=").append(kyMissionTargetPerson);
        sb.append(", kyMissionTargetContractId=").append(kyMissionTargetContractId);
        sb.append(", kyMissionTargetStatus=").append(kyMissionTargetStatus);
        sb.append(", kyMissionComment=").append(kyMissionComment);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateUser=").append(updateUser);
        sb.append(", createUser=").append(createUser);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", deleted=").append(deleted);
        sb.append(", kyMissionTargetValue=").append(kyMissionTargetValue);
        sb.append(", kyMissionTargetLevel=").append(kyMissionTargetLevel);
        sb.append(", kyMissionTargetExecuteStatus=").append(kyMissionTargetExecuteStatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}